# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer:
pkgname=ocamlclean
pkgver=2.3
pkgrel=0
pkgdesc="OCaml Bytecode Cleaner"
url="http://www.algo-prog.info/ocapic/web/index.php?id=OCAPIC:OCamlClean"
arch="all !riscv64"  # limited by ocaml aport
license="CECILL-2.0"
makedepends="bash ocaml ocamlbuild ocaml-obytelib"
subpackages="$pkgname-doc"
options="!check" # no test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/bvaugon/ocamlclean/archive/$pkgver.tar.gz
	obytelib-dir.patch
	"

build() {
	./configure \
		-prefix "$pkgdir"/usr \
		-mandir "$pkgdir"/usr/share/man
	make
}

package() {
	make install
}

sha512sums="
f8cfd1f55daea5f11d2ab3507b141358f1fba9313ba18d71ebfb83eef8ded567a20bee8eb10577fec92ee8e5a2fed34581f7bf7e42c672553b86de733c473641  ocamlclean-2.3.tar.gz
b6687df1d5a9b843b33344fa23c4ffd262f49b2e624c4ed3cd7448e57fa561ae1cd2c06580e96f1259bd240e3b95695d59868140c05537c5febd3c8b031563c3  obytelib-dir.patch
"
